import apiUrl from '../base'
import axios from '@/libs/axios'
const statisticsAnalysis = {
    // 销号统计
    destroyStatisticsAnalysis(parmes) {
        return axios.get(`${apiUrl.risk}v1/destroyStatistics/analysis?orgId=${parmes.enterpriseId}&projectId=${parmes.projectTeamId}`, '')   // &projectId=${parmes.projectTeamId}
    },
    // 统计分析-安全风险-总体辨识和动态辨识饼图和柱状图
    riskStatisticsStatisticsNormal(parmes) {
        return axios.get(`${apiUrl.risk}v1/RiskStatistics/statistics/normal?orgId=${parmes.enterpriseId}&projectId=${parmes.projectTeamId}`, '')   // &projectId=${parmes.projectTeamId}
    },
    // 统计分析-安全风险-总体辨识和动态辨识趋势图
    riskStatisticsStatisticsTrend(parmes) {
        return axios.get(`${apiUrl.risk}v1/RiskStatistics/statistics/trend?orgId=${parmes.enterpriseId}&projectId=${parmes.projectTeamId}`, '')   // &projectId=${parmes.projectTeamId}
    },
    // 逾期分布
    statOverdueLevelCount(parmes) {
        return axios.get(`${apiUrl.risk}v1/WorkbenchMessage/statOverdueLevelCount?userId=${parmes.userId}`, '')   
    },
}
export default statisticsAnalysis